﻿/*CREATE TRIGGER [dbo].[Municipios_DeletionTrigger] 
    ON [Municipios] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Municipios_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[MunicipioGuid] = [Municipios_Tombstone].[MunicipioGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Municipios_Tombstone] 
    ([MunicipioGuid], DeletionDate)
    SELECT [MunicipioGuid], GETUTCDATE()
    FROM deleted 
END*/